Integrand size = 10, antiderivative size = 6 \[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=x-\sin (x) \]
[Out]
Time = 0.08 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {4477, 2761, 8} \[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=x-\sin (x) \]
[In]
[Out]
Rule 8
Rule 2761
Rule 4477
Rubi steps \begin{align*} \text {integral}& = \int \frac {\sin ^2(x)}{1+\cos (x)} \, dx \\ & = -\sin (x)+\int 1 \, dx \\ & = x-\sin (x) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(14\) vs. \(2(6)=12\).
Time = 0.02 (sec) , antiderivative size = 14, normalized size of antiderivative = 2.33 \[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=2 \left (\frac {x}{2}-\frac {\sin (x)}{2}\right ) \]
[In]
[Out]
Time = 1.35 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.17
method | result | size |
risch | \(x -\sin \left (x \right )\) | \(7\) |
default | \(-\frac {2 \tan \left (\frac {x}{2}\right )}{1+\tan \left (\frac {x}{2}\right )^{2}}+2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )\) | \(25\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=x - \sin \left (x\right ) \]
[In]
[Out]
\[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=\int \frac {\sin {\left (x \right )}}{\cot {\left (x \right )} + \csc {\left (x \right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 38 vs. \(2 (6) = 12\).
Time = 0.34 (sec) , antiderivative size = 38, normalized size of antiderivative = 6.33 \[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=-\frac {2 \, \sin \left (x\right )}{{\left (\frac {\sin \left (x\right )^{2}}{{\left (\cos \left (x\right ) + 1\right )}^{2}} + 1\right )} {\left (\cos \left (x\right ) + 1\right )}} + 2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 18 vs. \(2 (6) = 12\).
Time = 0.29 (sec) , antiderivative size = 18, normalized size of antiderivative = 3.00 \[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=x - \frac {2 \, \tan \left (\frac {1}{2} \, x\right )}{\tan \left (\frac {1}{2} \, x\right )^{2} + 1} \]
[In]
[Out]
Time = 23.78 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.00 \[ \int \frac {\sin (x)}{\cot (x)+\csc (x)} \, dx=x-\sin \left (x\right ) \]
[In]
[Out]